package cn.hwadee.muying.entity;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import cn.hwadee.muying.commons.base.BaseModel;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 晋升记录
 * </p>
 *
 * @author Mankind
 * @since 2018-08-06
 */
@TableName("promotion_log")
public class PromotionLog extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 所属机构id
     */
    @TableField("org_id")
        
    private Long orgId;
    /**
     * 用户id
     */
    @TableField("user_id")
        
    private Long userId;
    /**
     * 原等级
     */
    @TableField("pre_level_id")
        
    private Long preLevelId;
    /**
     * 现等级
     */
    @TableField("cur_level_id")
        
    private Long curLevelId;
    /**
     * 晋升评价
     */
        
    private String comment;
    /**
     * 晋升时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @TableField("promote_date")
    private Date promoteDate;

    @TableField(exist = false)
    private String userName;

    @TableField(exist = false)
    private String preWorkerLevelName;

    @TableField(exist = false)
    private String curWorkerLevelName;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPreWorkerLevelName() {
        return preWorkerLevelName;
    }

    public void setPreWorkerLevelName(String preWorkerLevelName) {
        this.preWorkerLevelName = preWorkerLevelName;
    }

    public String getCurWorkerLevelName() {
        return curWorkerLevelName;
    }

    public void setCurWorkerLevelName(String curWorkerLevelName) {
        this.curWorkerLevelName = curWorkerLevelName;
    }


    public Long getOrgId() {
        return orgId;
    }

    public void setOrgId(Long orgId) {
        this.orgId = orgId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPreLevelId() {
        return preLevelId;
    }

    public void setPreLevelId(Long preLevelId) {
        this.preLevelId = preLevelId;
    }

    public Long getCurLevelId() {
        return curLevelId;
    }

    public void setCurLevelId(Long curLevelId) {
        this.curLevelId = curLevelId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Date getPromoteDate() {
        return promoteDate;
    }

    public void setPromoteDate(Date promoteDate) {
        this.promoteDate = promoteDate;
    }

    public static final String ORG_ID = "org_id";

    public static final String USER_ID = "user_id";

    public static final String PRE_LEVEL = "pre_level";

    public static final String CUR_LEVEL = "cur_level";

    public static final String COMMENT = "comment";

    public static final String PROMOTE_DATE = "promote_date";

    @Override
    public String toString() {
        return "PromotionLog{" +
                ", orgId=" + orgId +
                ", userId=" + userId +
                ", preLevel=" + preLevelId +
                ", curLevel=" + curLevelId +
                ", comment=" + comment +
                ", promoteDate=" + promoteDate +
        "}";
    }
}
